package task09;

public class Hisense extends TV{
    boolean  d3;
    Hisense(){}
    Hisense(String brand,byte size,boolean d3 ){
        this.brand=brand;
        this.size=size;
        this.d3=d3;
    }
        @Override
        void output(){
            if(d3!=true){
                super.output();
            }else{
                System.out.println("子类方法：  牌子是："+brand+
                        "   尺寸为"+size+"  是3D电视");
            }

    }
}
